package com.feilong.modules.controller.auth;

import com.feilong.modules.service.auth.AuthEncryptionService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/auth")
public class AuthEncryptionController {

    @Resource
    private AuthEncryptionService authEncryptionService;

    /**
     * 获取公钥
     */
    @GetMapping("getPublicKey")
    public String getPublicKey(){
        return authEncryptionService.getPublicKey();
    }

}
